package code.lucamarrocco.rest;

import java.util.*;

public class RestfulTopic {
	private String name;

	private List<RestfulResource> resources = new LinkedList<RestfulResource>();

	public RestfulTopic() {}

	public RestfulTopic(String name) {
		this.name = name;
	}

	public RestfulTopic addResource(RestfulResource resource) {
		resource.setTopic(this);
		resources.add(resource);
		return this;
	}

	public String getName() {
		return name;
	}

	public List<RestfulResource> getResources() {
		return resources;
	}

	public void setName(String name) {
		this.name = name;
	}
}
